/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
const companyRouter = {
  path: '/company/list',
  component: Layout,
  name: 'company-list',
  meta: {
    title: '账户',
    icon: 'company',
    permissions: ['company.query']
  },
  children: [
    {
      path: '/company/list',
      component: () => import('@/views/company/list'),
      name: 'company-list',
      meta: {title: '账户管理', icon: 'company'
        // ,permissions: ['company.query']
      },

    },
    // {
    //   path: '/companyB/list',
    //   component: () => import('@/views/companyB/list'),
    //   name: 'company-list',
    //   meta: {
    //     title: '账户B', icon: 'company'
    //     // ,permissions: ['company.query']
    //   },
    // },
    // 注册路由
    {
      path: '/company/list',
      component: () => import('@/views/company/list'),
      name: 'company-list',
      meta: { title: '账户资料', icon: 'sub_company'},
      hidden: true
    },
    {
      path: '/company/add',
      component: () => import('@/views/company/add'),
      name: 'company-add',
      meta: { title: '新增账户', icon: 'sub_company'},
      hidden: true
    },
    {
      path: '/company/edit',
      component: () => import('@/views/company/edit'),
      name: 'company-edit',
      meta: { title: '修改账户', icon: 'sub_company'},
      hidden: true
    },

    {
      path: '/company/detail',
      component: () => import('@/views/company/detail'),
      name: 'company-detail',
      meta: { title: '账户详情', icon: 'sub_company'},
      hidden: true
    },
    // {
    //   path: '/companyB/detail',
    //   component: () => import('@/views/companyB/detail'),
    //   name: 'companyB-detail',
    //   meta: { title: '账户详情', icon: 'sub_company'},
    //   hidden: true
    // },
    // {
    //   path: '/companyB/detail',
    //   component: () => import('@/views/companyB/list'),
    //   name: 'company-list',
    //   meta: { title: '账户资料', icon: 'sub_company'},
    //   hidden: true
    // },
  ]
}
export default companyRouter
